import Vue from "vue";
import vuex from 'vuex'

// 导入仓库模块
import home from '@/store/Home'
import search from '@/store/Search'
import detail from '@/store/detail'
import cart from '@/store/cart'
import user from '@/store/user'
import trade from '@/store/trade'

// 使用插件
Vue.use(vuex)

const store = new vuex.Store({
    modules:{
        home,
        search,
        detail,
        cart,
        user,
        trade
    }
})

export default store